package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsStudentTeachingClassMapper;
import com.ruoyi.system.domain.CcsStudentTeachingClass;
import com.ruoyi.system.service.ICcsStudentTeachingClassService;

/**
 * 学生教学班级管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
@Service
public class CcsStudentTeachingClassServiceImpl implements ICcsStudentTeachingClassService 
{
    @Autowired
    private CcsStudentTeachingClassMapper ccsStudentTeachingClassMapper;

    /**
     * 查询学生教学班级管理
     * 
     * @param id 学生教学班级管理主键
     * @return 学生教学班级管理
     */
    @Override
    public CcsStudentTeachingClass selectCcsStudentTeachingClassById(Long id)
    {
        return ccsStudentTeachingClassMapper.selectCcsStudentTeachingClassById(id);
    }

    /**
     * 查询学生教学班级管理列表
     * 
     * @param ccsStudentTeachingClass 学生教学班级管理
     * @return 学生教学班级管理
     */
    @Override
    public List<CcsStudentTeachingClass> selectCcsStudentTeachingClassList(CcsStudentTeachingClass ccsStudentTeachingClass)
    {
        return ccsStudentTeachingClassMapper.selectCcsStudentTeachingClassList(ccsStudentTeachingClass);
    }

    /**
     * 新增学生教学班级管理
     * 
     * @param ccsStudentTeachingClass 学生教学班级管理
     * @return 结果
     */
    @Override
    public int insertCcsStudentTeachingClass(CcsStudentTeachingClass ccsStudentTeachingClass)
    {
        return ccsStudentTeachingClassMapper.insertCcsStudentTeachingClass(ccsStudentTeachingClass);
    }

    /**
     * 修改学生教学班级管理
     * 
     * @param ccsStudentTeachingClass 学生教学班级管理
     * @return 结果
     */
    @Override
    public int updateCcsStudentTeachingClass(CcsStudentTeachingClass ccsStudentTeachingClass)
    {
        return ccsStudentTeachingClassMapper.updateCcsStudentTeachingClass(ccsStudentTeachingClass);
    }

    /**
     * 批量删除学生教学班级管理
     * 
     * @param ids 需要删除的学生教学班级管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsStudentTeachingClassByIds(Long[] ids)
    {
        return ccsStudentTeachingClassMapper.deleteCcsStudentTeachingClassByIds(ids);
    }

    /**
     * 删除学生教学班级管理信息
     * 
     * @param id 学生教学班级管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsStudentTeachingClassById(Long id)
    {
        return ccsStudentTeachingClassMapper.deleteCcsStudentTeachingClassById(id);
    }
}
